entityList = []
enemyList = []
buffer = []
hud = []
def addEntity(entity):
    buffer.append(entity)
class enM:
    def __init__(self):
        pass
    def update(self):
        if len(entityList) > 0:
            for entity in entityList:
                buffer.append(entity)
                entityList.remove(entity)
        for entity in buffer:
            entity.think()
        if len(hud) == 1:
            hud[0].think()
